package com.topc.others.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.topc.others.model.po.CompetitionApplyInfo;
import com.topc.others.model.po.CompetitionUserMid;
import com.topc.others.model.vo.CompetitionApplyShowVo;
import com.topc.others.model.vo.CompetitionCheckInfoVo;
import com.topc.others.model.vo.CompetitionRankingShowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户竞赛关系表 Mapper 接口
 * </p>
 *
 * @author Gogoing
 */
public interface CompetitionUserMidMapper extends BaseMapper<CompetitionUserMid> {

    Page<CompetitionApplyShowVo> searchPage(IPage<CompetitionApplyShowVo> page, @Param("id") Long id);

    CompetitionCheckInfoVo getCheckInfo(@Param("competitionId")Long competitionId,@Param("userNumber")String userNumber);

    CompetitionApplyInfo getApplyInfo(@Param("competitionId") Long competitionId, @Param("userNumber") String userNumber);

    List<CompetitionRankingShowVo> getCompetitionUserRanking(@Param("competitionId") Long competitionId);
}
